<?php if ($type_list = $this->get_data('type_list')):?>
<div class="add_options">
    <a href="javascript:;">Add Content</a>
    <div class="type_list box">
    <ul>
        <?php foreach ($type_list as $type):?>
            <li>
            <a href="<?php echo tos_router_url(array('m' => $type, 'a' => 'add'));?>" 
                onclick="return z.add_node(this.href);">
                <?php echo $type;?>
            </a></li>
        <?php endforeach;?>
    </ul>
    </div>
</div>
<?php endif;?>